package net.hn.hnms.biz.plan.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 回采工作面信息
 *
 * @author ly
 * @since 1.0.0 2022-08-16
 */
@Data
@ApiModel("回采工作面信息")
public class DimMiningFaceReq extends BaseReq {

    @ApiModelProperty(value = "id")
    private String miningFaceId;
    @ApiModelProperty(value = "煤矿编号")
    private String mineCode;

    @ApiModelProperty(value = "工作面名称")
    @NotBlank(message = "工作面名称不能为空")
    @Length(max = 100,message = "工作面名称长度不能超过100个字符")
    private String miningFaceName;
    @ApiModelProperty(value = "工作面编号")
    @NotBlank(message = "工作面编号不能为空")
    @Length(max = 100,message = "工作面编号长度不能超过100个字符")
    private String miningFaceCode;
    @ApiModelProperty(value = "工作面标高（m）")
    @Digits(integer = 9, fraction=2, message = "工作面标高格式不正确")
    @DecimalMin(value = "0.00", message = "工作面标高格式不正确")
    private BigDecimal miningFaceHigh;
    @ApiModelProperty(value = "可采走向长度（m）")
    @Digits(integer = 9, fraction=2, message = "可采走向长度格式不正确")
    @DecimalMin(value = "0.00", message = "可采走向长度格式不正确")
    private BigDecimal miningFaceLength;

    @ApiModelProperty(value = "煤层倾角")
    @Digits(integer = 9, fraction=2, message = "煤层倾角格式不正确")
    @DecimalMin(value = "0.00", message = "煤层倾角格式不正确")
    private BigDecimal miningFaceAngle;
    @ApiModelProperty(value = "平均煤厚（m）")
    @Digits(integer = 9, fraction=2, message = "平均煤厚格式不正确")
    @DecimalMin(value = "0.00", message = "平均煤厚格式不正确")
    private BigDecimal miningFaceThick;

    @ApiModelProperty(value = "预计结束时间")
//    @JsonFormat(
//            pattern = "yyyy-MM-dd",
//            timezone = "GMT+8"
//    )
//    @DateTimeFormat( pattern = "yyyy-MM-dd")
    private LocalDate estimateEndDate;

    @ApiModelProperty(value = "搬家倒面至")
    private String relocation;

    @ApiModelProperty(value = "公司编号")
    private String companyCode;

    @ApiModelProperty(value = "煤矿名称")
    private String mineName;

    @ApiModelProperty(value = "公司名称")
    private String companyName;

    @ApiModelProperty(value = "是否重点区域")
    private String isKeyArea;


}
